<template>
  <div class="Footer">
    <h1>这里是下部内容 count{{count}}</h1>
    <h2>获取电影列表<button @click="getMovieList">获取电影列表</button></h2>
    <ul>
      <li v-for="item in movieList" :key='item.tvId'>{{item.name}}</li>
    </ul>
  </div>
</template>

<script>
import { mapActions, mapState } from 'vuex'
export default {
  
    name:'Footer',
    computed:{ 
      ...mapState('count',['count','movieList'])
    },

    //获取电影列表
    methods: {
      ...mapActions('count',['getMovieList'])
    },
}
</script>

<style>
.Footer{
  text-align: center;
  background-color: aqua;
}
</style>